/**
  * @Description: 
  * @Author: 
  * @Date: 2023-08-16 09:12:13
  * @LastEditor: 
  * @LastEditTime: 2023-09-12 11:27:35
  
  */


// #ifdef MP-WEIXIN
let BASE_URL = '', SIGN = ''
BASE_URL = 'http://tpyy.cn'//'https://duanju.nymaite.cn'

SIGN = ''
 
// const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {}
// if(Object.keys(extConfig).length === 0) {
// 	uni.showModal({
// 		title: '未配置ext信息，请联系管理员'
// 	})
// } else {
// 	if(!extConfig.domain) {
// 		uni.showModal({
// 			title: '域名信息有误，请联系管理员'
// 		})
// 	}
// 	BASE_URL = 'https://' + extConfig.domain
// 	SIGN = extConfig.sign
// }
// #endif

// #ifdef H5
let BASE_URL = '', SIGN = ''
if (process.env.NODE_ENV === 'development') {
	// BASE_URL = 'https://cyjc.leyogames.com'
	BASE_URL = 'https://api.wei.do/'//'https://tpyy.cn'//'//'https://test.p6688.top'//'https://www.hongtuoxinxi.cn'
	SIGN = '123456'
} else {
	//BASE_URL = 'https://tpyy.cn'//'https://www.hongtuoxinxi.cn'
	SIGN = '123456'
	BASE_URL = 'https://api.wei.do/'
	//SIGN = window.location.search.replace(/\?/g, "")
}
// #endif

// #ifdef APP-PLUS
let BASE_URL = 'https://www.xmcm66.com',
	SIGN = ''
// #endif
// #ifdef MP-TOUTIAO
let BASE_URL = '', SIGN = ''
	BASE_URL = 'https://duanju.nymaite.cn'
	SIGN = ''
// #endif

export {
	BASE_URL,
	SIGN
}